﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SiGeSIB.Data.Providers;

namespace SiGeSIB.Data.Specialized.Providers
{
	public class DataProvider : IDataProvider
	{
		private static DataProvider _Instance;

		public static DataProvider Instance
		{
			get
			{
				if (_Instance == null)
					_Instance = new DataProvider();
				return _Instance;
			}
		}

		#region IDataProvider Members

		public IManagementDataProvider CreateManagementDataProvider()
		{
			return new ManagementDataProvider();
		}

		public ISecurityDataProvider CreateSecurityDataProvider()
		{
			return new SecurityDataProvider();
		}

		public IBackupRestorationDataProvider CreateBackupDataProvider()
		{
			return new BackupRestorationDataProvider();
		}

		public IFinancesDataProvider CreateFinancesDataProvider()
		{
			return new FinancesDataProvider();
		}

		#endregion
	}
}
